package cn.jekun.shop.web.bean;

import java.util.ArrayList;
import java.util.List;

import cn.jekun.component.core.bean.gen.ErpOrders;

public class ErpOrder extends ErpOrders{
	private List<ErpOrderItem> items;
	private String shopName;
	
	public List<ErpOrderItem> getItems() {
		return items;
	}

	public void setItems(List<ErpOrderItem> items) {
		this.items = items;
	}

	public String getShopName() {
		return shopName;
	}

	public void setShopName(String shopName) {
		this.shopName = shopName;
	}

	/**
	 * 增加订单明细
	 * @param item
	 */
	public void addErpOrderItems(ErpOrderItem item) {
		if (items==null) {
			items = new ArrayList<ErpOrderItem>();
		}
		items.add(item);
	}
	
}
